import Vue from 'vue';
// // 导入vuex
// import Vuex from 'vuex';
// //挂载
// Vue.use(Vuex);

/* //导入Vant组件库
import Vant from 'vant';
//导入Vant组件全局样式
import 'vant/lib/index.css';
// 挂载vant组件(全局注册所有属性)
Vue.use(Vant); */


//导入所需Vant组件库
import { Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Toast, Card, GoodsAction, GoodsActionIcon, GoodsActionButton, Sku, SwipeCell, Checkbox, CheckboxGroup, Divider, SubmitBar, Dialog, Stepper, Button, List, PullRefresh, Popup } from 'vant';
Vue.use(Tabbar)
    .use(TabbarItem)
    .use(Icon)
    .use(Swipe)
    .use(SwipeItem)
    .use(Card)
    .use(GoodsAction)
    .use(GoodsActionIcon)
    .use(GoodsActionButton)
    .use(Sku)
    .use(SwipeCell)
    .use(Checkbox)
    .use(CheckboxGroup)
    .use(Divider)
    .use(SubmitBar)
    .use(Stepper)
    .use(Button)
    .use(List)
    .use(PullRefresh)
    .use(Popup)
    .use(Dialog)

// 挂载全局Toast Dialog
Vue.prototype.$toast = Toast;
Vue.prototype.$dialog = Dialog;


// 导入rem布局插件（可以根据）
import 'lib-flexible'

import App from './App.vue'
import router from './router'

//导入fastclick 工具库 解决移动端点击300ms延时
import fastclick from 'fastclick'
fastclick.attach(document.body)

Vue.config.productionTip = false


//导入sdk的QQ
import { QC } from '@/libs/qc_jssdk.js'
Vue.prototype.$QQ = QC;


import store from '@/store/index';
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')